import java.util.Date;


public class Report
{
	private int reportID;
	private Date date;
	private ReportStrategy type;
	
	public Report(int id, Date d, String typeDes){
		reportID=id;
		date=d;
		setType(typeDes);		
	}
	
	public void setType(String s){
		if(s.equalsIgnoreCase("inventory"))
		{
			type=new InventoryReport();
		}
		else if(s.equalsIgnoreCase("queue"))
		{
			type=new QueueReport();
			
		}
		else if(s.equalsIgnoreCase("accounts"))
		{
			type=new AccountsReport();
			
		}
	}
	
	public ReportStrategy getType()
	{
		return type;
	}
	
	public void printReport()
	{
		type.printReport();
	}
	
	public int getReportID()
	{return reportID;}
	
	public Date getDate()
	{return date;}
	

}
